import { createSSRApp } from "vue";
import App from "./App.vue";
import utils from "@/common/utils/utils";
import uviewPlus from 'uview-plus'

// 注册全局组件
import Navbar from "@/components/Navbar/index"
// 导入 pinia 实例
import pinia from '@/store/index'
export function createApp() {
  const app = createSSRApp(App);
  app.component('Navbar', Navbar)
  app.use(pinia).use(uviewPlus); // 注册 pinia uviewPlus
  app.use(utils); // 注册全局方法
  return {
    app,
  };
}
